
import {createHashRouter,} from "react-router-dom";


// import Root, { rootLoader } from "./routes/root";
// import Team, { teamLoader } from "./routes/team";

import App from '@/pages/app'
import Device from "@/pages/device";
import Pkg from "@/pages/pkg";
import Sign from "@/pages/sign";
import About from "@/pages/about";

export default createHashRouter([
  {
    path: "/",
    element:<App />,
    children: [

      {
        index: true, 
        // path: "device", 设置完index属性,不能在写路由
        element: <Device />,
      },
      {
        path: "pkg",
        element: <Pkg />,
      },
      {
        path: "sign",
        element: <Sign />
      }
    ]
  },
  {
    path: "/about",
    element: <About />,
  }
]);
